package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_snow_garden_build", autoSave = true, dataUpload = true, eventName = "ice_building")
public class LogSnowGardenBuild extends BaseLogEntity {
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "投掷次数", dataAttribute = "ice_gotype")
    private int times;
    @FieldTypeAnnotation(desc = "前进步数", dataAttribute = "ice_gonum")
    private int step;
    @FieldTypeAnnotation(desc = "建筑地块", dataAttribute = "ice_build")
    private int buildIndex;
    @FieldTypeAnnotation(desc = "触发事件", dataAttribute = "ice_event")
    private int eventId;
    @FieldTypeAnnotation(desc = "触发事件参数")
    private String eventParam;
    @FieldTypeAnnotation(desc = "积分", dataAttribute = "ice_addscore")
    private int score;
    @FieldTypeAnnotation(desc = "时间")
    private Date time;

    public LogSnowGardenBuild(int activityId, long userId, int times, int step, int buildIndex, int eventId, String eventParam, int score, Date time) {
        this.activityId = activityId;
        this.userId = userId;
        this.times = times;
        this.step = step;
        this.buildIndex = buildIndex;
        this.eventId = eventId;
        this.eventParam = eventParam;
        this.score = score;
        this.time = time;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        this.times = times;
    }

    public int getStep() {
        return step;
    }

    public void setStep(int step) {
        this.step = step;
    }

    public int getBuildIndex() {
        return buildIndex;
    }

    public void setBuildIndex(int buildIndex) {
        this.buildIndex = buildIndex;
    }

    public int getEventId() {
        return eventId;
    }

    public void setEventId(int eventId) {
        this.eventId = eventId;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getEventParam() {
        return eventParam;
    }

    public void setEventParam(String eventParam) {
        this.eventParam = eventParam;
    }
}
